﻿using System;
using Inovout.Model;

namespace Inovout.Security
{
    public partial class Privilege:DataObject
    {
        private Guid privilegeId;
        public Guid PrivilegeId
        {
            get { return privilegeId; }
            protected set { privilegeId = value; }
        }
        private string name;
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private Resource resource;
        public virtual Resource Resource
        {
            get { return resource; }
            set { resource = value; }
        }
        private Operation operation;
        public virtual Operation Operation
        {
            get { return operation; }
            set { operation = value; }
        }

        public Privilege()
        {
        }
        public Privilege(Resource resource, Operation operation)
        {
            this.resource = resource;
            this.operation = operation;
        }
    }
}
